package cn.aixuegao.mybatis.processor;

import cn.aixuegao.common.bean.Permission;
import org.apache.ibatis.mapping.BoundSql;
import org.apache.ibatis.mapping.MappedStatement;

/**
 * @author: huangxingyao
 * @date: 2020/03/30
 * @what:
 * @why:
 * @how:
 */
public interface IRestructureProcessor {


    /**
     * 处理SQL
     *
     * @param ms            调用
     * @param permissionSql 权限SQL
     * @param permission    权限实体
     * @return
     */
    BoundSql process(MappedStatement ms, BoundSql permissionSql, Permission permission);
}
